package Controller;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.portlet.RenderRequest;

import models.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.portlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;

import util.AddandSort;

import Service.GetOpalServiceList;
import Service.UserService;

@Controller
@RequestMapping(value = "VIEW")
public class InitController extends SimpleFormController{

	@Autowired
	private UserService userService;
	
	//default page
	@RequestMapping
	public ModelAndView defaultView(RenderRequest request) throws Exception {
		ModelAndView mv = new ModelAndView();
		mv.setViewName("home");
		return mv;
	}
	//go home
	@RequestMapping(params ="action=gohome")
	public ModelAndView homeView(RenderRequest request) throws Exception {
		ModelAndView mv = new ModelAndView();
		mv.setViewName("home");
		return mv;
	}
	
}
